<?php
// test/bootstrap/Doctrine.php
include(dirname(__FILE__).'/unit.php');

//$configuration - object with configurations of test environment:
$configuration = ProjectConfiguration::getApplicationConfiguration( 'frontend', 'test', true);

//Creating Database Manager. It will load configuration from databases.yml and defines Doctrine's connection settings.
new sfDatabaseManager($configuration);

//Loading data from "test/fixtures/" using method Doctrine::loadData():
Doctrine::loadData(sfConfig::get('sf_test_dir').'/fixtures');